//=============================================================================

#ifndef ATEXTURE_H
  #define ATEXTURE_H

//=============================================================================

#include "doCommon.h"

//=============================================================================

class aTexture
{
	public:
    inline unsigned short atGetWidth()  {return width;}
    inline unsigned short atGetHeight() {return height;}
    inline unsigned short atGetChannels() {return channels;}

		aTexture();
		  bool atLoadTextureTGA(const aString& path);
      void atRemoveData();
      bool atGenerateTextureForOGL();
      bool atIsNULL()const;
      void atBindTexture()const;
      bool atCollectDataTo(char* add)const;
      bool atAbsorbData(char* incomingData, unsigned short sizeLength, unsigned short bytes);
      void atCloneTexture(const aTexture& tex);
    virtual ~aTexture();

  protected:
		unsigned char *data;
		unsigned int texture;
	  unsigned short channels;
	  unsigned short width;
	  unsigned short height;
};

//=============================================================================

#endif

//=============================================================================
